//
//  Communicator.h
//  Raspberry
//
//  Created by 张 锋 on 3/25/14.
//  Copyright (c) 2014 Schneider Electric China. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface Communicator : NSObject <NSStreamDelegate>{
    @public
    
    NSString *host;
    int port;
}

- (void)setup;
- (void)open;
- (void)close;
- (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)event;
- (void)readIn:(NSString *)s;
- (void)writeOut:(NSString *)s;

@end
